//
//  Define.h
//  WGFGlobalHouse
//
//  Created by waiguofang on 15/4/14.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#ifndef WGFGlobalHouse_Define_h
#define WGFGlobalHouse_Define_h




#pragma mark - 设备
//判断设备机型
#define iPhone6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone6PlusAmplification ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2001) , [[UIScreen mainScreen] currentMode].size) : NO)//iPhone 6 plus有两种显示模式，标准模式分辨率为1242x2208，放大模式分辨率为1125x2001
#define iPhone6Plus ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2208) , [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(320, 480), [[UIScreen mainScreen] currentMode].size) : NO)

#define iPhone4s ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)


//获取设备的屏幕尺寸
//高度
#define UIScreenHeight [UIScreen mainScreen].bounds.size.height
//宽度
#define UIScreenWidth  [UIScreen mainScreen].bounds.size.width

#define ImgeForwardUrl @"http://img.wgfcdn.com/"
//#define ImgeForwardUrl @"http://192.168.2.233:8080/"

#define login_url @"/user/login"
//一般uisrollview的高度
#define SCROLLVIWEHEIGHT (UIScreenHeight+5)

//登录接口
//#define LOGIN_URL @"/user/login/%@/%@"
#define POST_LOGIN @"/user/loginPost"
//列表展示数量
#define PAGESIZE 10
//注册接口
#define searchByMobile @"/sms/searchByMobile/%@"

//修改密码验证吗
#define CAPTCHA @"/sms/captcha/%@/%@"
//验证码验证
#define CAPTCHA_VALIDATE @"/sms/mobileAuthCodeValidate"
//新密码设置
#define NEW_PASSWORD @"/sms/mobilePasswordModify"
//注册接口
#define REGISTER @"/sms/register"
//激活接口
#define USER_ACTIVITY  @"/sms/userActivity"
//上传名片
#define UP_MINGPIAN @"/sms/upload"



//parameters:mobile,type=1,pictures

//测试接口
#define CE_SHI @"http://192.168.2.233:8203/wgf-distribute-mobile-0.0.1/test/index"
#define kChangeStatus @"changeStatus"

#define MAIN_SCREEN_bounds [UIScreen mainScreen].bounds

#define BASE_URL @"http://192.168.2.233:8203/wgf-distribute-mobile-0.0.1%@"
#define USER_LOGIN @"/user/login/{mobile}/{mobilepassword}/user/login/13112345678/E10ADC3949BA59ABBE56E057F20F883E"

#define WGF_FX_URL @"http://192.168.2.233:8203/wgf-distribute-mobile-0.0.1/mobileServlet"

//param1:类型  param2:自定义参数  param3:字典
#define LOUPAN_PARAMETERS  @{@"functions":@[@{@"function":%@,@"key":%@,@"paras":%@}]};

/*
 distribute/user
 */
#define userPic @"distribute/user/%@"
#define PIC_URL @"http://192.168.2.233:8080/%@"
#define IMG_URL @"http://192.168.2.233:8081/%@"

#define UP_IMG @"http://192.168.2.233:8203/wgf-distribute-mobile-0.0.1/mobile/upload"

// 1.判断是否为iOS7
#define iOS7 ([[UIDevice currentDevice].systemVersion doubleValue] >= 7.0)

// 2.获得RGB颜色
#define IWColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]


#endif

